package tech.yunqian.slim.project.domain;

import java.util.List;

import lombok.Data;

@Data
public class MonitorRule {
    private Integer id;
    private String name;
    private String description;
    private Integer type;
    private Integer triggerLogic;
    private Integer conditionCount;
    private List<AlarmRule> alarmRules;
    private List<ScenarioRule> scenarioRules;
    public Boolean isActive() {
        return !(alarmRules.isEmpty() && scenarioRules.isEmpty());
    }
}